// getters转换为调用者的计算属性(computed)
export default {
    cartLength(state) {
        return state.cartList.length
    },

    cartList(state) {
        return state.cartList
    }
}